<template>
  <!--  'subDeptList','title','ajaxUrl','softlinks'-->
  <div class="_wz_cent_main _wz_dataImport">
    <Card dis-hover shadow style="margin: 0 0 10px 0;">
      <p slot="title">
        基础信息导入
        <span style="color: #f00;font-size: 12px;font-weight: 900;margin: 0 0 0 10px;">请严格按照模板要求导入，全部为必填项。</span>
      </p>
      <Row :gutter="10">
        <i-col span="12">
          <dataImportTemp :subDeptList="subDeptList" title="营运车辆导入" ajaxUrl="uploadCoreVehicle" softlinks="template/安运通/运输车辆导入模板.xlsx"></dataImportTemp>
        </i-col>
        <i-col span="12">
          <dataImportTemp :subDeptList="subDeptList" title="货运挂车导入" ajaxUrl="uploadCoreTrailer" softlinks="template/安运通/货运挂车导入模板.xlsx"></dataImportTemp>
        </i-col>
<!--        <i-col span="8">-->
<!--          <dataImportTemp :subDeptList="subDeptList" title="从业人员导入" ajaxUrl="uploadCoreDriver" softlinks="template/安运通/从业人员导入模板.xlsx"></dataImportTemp>-->
<!--        </i-col>-->
      </Row>
    </Card>


    <Card dis-hover shadow>
      <p slot="title">
        机务信息导入
        <span style="color: #f00;font-size: 12px;font-weight: 900;margin: 0 0 0 10px;">请严格按照模板要求导入，全部为必填项。</span>
      </p>
      <Row :gutter="10" style="margin: 0 0 10px 0;">
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="年检台账到期导入" ajaxUrl="uploadAnnualInspectRecord" softlinks="template/安运通/年检档案导入模板.xlsx"></dataImportTemp>
        </i-col>
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="保险台账到期导入" ajaxUrl="uploadInsuranceRecord" softlinks="template/安运通/保险档案导入模板.xlsx"></dataImportTemp>
        </i-col>
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="维保台账到期导入" ajaxUrl="uploadMaintainRecord" softlinks="template/安运通/维保档案导入模板.xlsx"></dataImportTemp>
        </i-col>
      </Row>
      <Row :gutter="10">
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="营运台账到期导入" ajaxUrl="uploadOperationCertificateRecord" softlinks="template/安运通/营运档案导入模板.xlsx"></dataImportTemp>
        </i-col>
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="北斗入网档案导入模板" ajaxUrl="uploadTerminalRecordUpload" softlinks="template/安运通/北斗入网档案导入模板.xlsx"></dataImportTemp>
        </i-col>
        <i-col span="8">
          <dataImportTemp :subDeptList="subDeptList" title="挂车车船税台账到期导入" ajaxUrl="uploadTrailerVesselTaxRecord" softlinks="template/安运通/挂车车船税档案导入模板.xlsx"></dataImportTemp>
        </i-col>
      </Row>
    </Card>


  </div>
</template>
<script>
  import dataImportTemp from "./dataImportTemp.vue";

  export default {
    components: {
      dataImportTemp,//
    },
    data() {
      return {
        subDeptList: [],//运输企业
      }
    },
    computed: {//计算属性

    },
    beforeCreate() {//beforeCreate创建前状态

    },
    created() {//created创建完毕状态

    },
    beforeMount() {//beforeMount挂载前状态   DOM 元素然后塞入页面的过程

    },
    mounted() {//mounted 挂载结束状态
      var that = this;
      //运输企业
      that.axios.post(that.apiUrl.coreDeptCoreDeptList, {}).then(res => {
        if (!!res) {
          that.subDeptList = res.data.data;
        }
      }).catch(err => {
        console.log("失败", err)
      })

    },
    methods: {//执行的方法

    },
    watch: {//监听

    },
    props: {//接收来自父组件的数据

    },
    beforeUpdate() {//beforeUpdate 更新前状态

    },
    updated() {//updated 更新完成状态

    },
    beforeDestroy() {//beforeDestroy 销毁前状态

    },
    destroyed() {//destroyed 销毁完成状态

    }
  }
</script>
<style lang="less">
  ._wz_dataImport {
    height: 100%;
  }
</style>
